import java.io.File;
import java.io.IOException;

/**
 * Creater with IntelliJ IDEA.
 * Description:
 * User: 86152
 * Dae: 2022-08-02
 * Time: 17:39
 */
public class demo1 {
    public static void main(String[] args) throws IOException {
        File file = new File("..\\hello_world.txt");

        System.out.println(file.exists());
        file.deleteOnExit();
        System.out.println(file.exists());
    }
}
